package com.biwin.core.api.enums;

import com.biwin.common.api.enums.IBwEnum;

/**
 * BiWin framework system exception enum
 *
 * SYS - System
 * @author biwin
 * @since 0.0.1
 */
public enum BwBasicExceptionEnum implements IBwEnum {
    LOCK_ERROR("SYS0001", "数据版本异常,请刷新页面后再试"),
    SERVER_ERROR("SYS0002", "服务器内部出现异常"),
    NOT_SUPPORTED("SYS0003", "不支持的操作"),
    VALID_ERROR("SYS0004", "参数校验异常"),
    DATABASE_ERROR("SYS0005", "数据库内部出现异常"),
    ;

    private String code;
    private String value;

    BwBasicExceptionEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }
}
